#include<iostream>

using namespace std;

class A2
{
public:
	void f2()
	{
		cout << "void f2()"  << endl;
	}
};

int main()
{
	A2 a2;
	A2* p1 = &a2;
	p1->f2();

	A2* p2 = nullptr;
	p2->f2();

	return 0;
}